package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoArtContent;
import com.muyu.danmo.mapper.DanmoArtContentMapper;
import com.muyu.danmo.service.IDanmoArtContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 专业简介Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-26
 */
@Service
public class DanmoArtContentServiceImpl implements IDanmoArtContentService
{
    @Autowired
    private DanmoArtContentMapper danmoArtContentMapper;

    /**
     * 查询专业简介
     * 
     * @param contentId 专业简介主键
     * @return 专业简介
     */
    @Override
    public DanmoArtContent selectDanmoArtContentByContentId(Long contentId)
    {
        return danmoArtContentMapper.selectDanmoArtContentByContentId(contentId);
    }

    /**
     * 查询专业简介列表
     * 
     * @param danmoArtContent 专业简介
     * @return 专业简介
     */
    @Override
    public List<DanmoArtContent> selectDanmoArtContentList(DanmoArtContent danmoArtContent)
    {
        return danmoArtContentMapper.selectDanmoArtContentList(danmoArtContent);
    }

    /**
     * 新增专业简介
     * 
     * @param danmoArtContent 专业简介
     * @return 结果
     */
    @Override
    public int insertDanmoArtContent(DanmoArtContent danmoArtContent)
    {
        return danmoArtContentMapper.insertDanmoArtContent(danmoArtContent);
    }

    /**
     * 修改专业简介
     * 
     * @param danmoArtContent 专业简介
     * @return 结果
     */
    @Override
    public int updateDanmoArtContent(DanmoArtContent danmoArtContent)
    {
        return danmoArtContentMapper.updateDanmoArtContent(danmoArtContent);
    }

    /**
     * 批量删除专业简介
     * 
     * @param contentIds 需要删除的专业简介主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtContentByContentIds(Long[] contentIds)
    {
        return danmoArtContentMapper.deleteDanmoArtContentByContentIds(contentIds);
    }

    /**
     * 删除专业简介信息
     * 
     * @param contentId 专业简介主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtContentByContentId(Long contentId)
    {
        return danmoArtContentMapper.deleteDanmoArtContentByContentId(contentId);
    }


}
